//1.引入
import {get,post} from "./axios"

// export  let rolelist = ()=>get("/rolelist")
// export  let getgoodsinfo = (data)=>get("/getgoodsinfo",data)

//1.添加菜单
export let menuadd = (data)=> post("/menuadd",data);

//2.获取菜单列表
export let menulist = ()=> get("/menulist?istree=true");


//3.删除菜单
export let menudelete = (data)=> post("/menudelete",data);

//4.获取菜单  -- 一条
export let menuinfo = (data)=> get("/menuinfo",data);

//5.修改菜单
export let menuedit = (data)=> post("/menuedit",data);